from transformers import pipeline

#classifier = pipeline(task="audio-classification", model="facebook/mms-lid-256")
classifier = pipeline(task="automatic-speech-recognition")
#classifier = pipeline(task="audio-classification", model="facebook/mms-lid-256",device="cpu")
#preds = classifier("https://hf-mirror.com/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")
preds = classifier("/home/centos5/work_week01/data/audio/mlk.flac")
print("automatic-speech-recognition：", preds)
